package com.tyqx.hashchaindao.mapper;


import com.tyqx.hashchainbean.module.SysResource;
import com.tyqx.hashchainbean.vo.PerOrResourceResultVO;
import com.tyqx.hashchainbean.vo.SysResourceVO;
import com.tyqx.hashchainbean.vo.SysRoleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysResourceMapper {

    public SysResource getById(@Param(value = "resId") Long resId) throws Exception;

    public List<SysResource> getListByMap(Map<String, Object> param) throws Exception;

    public Integer getCountByMap(Map<String, Object> param) throws Exception;

    public Integer save(SysResource sysResource) throws Exception;

    public Integer modify(SysResource sysResource) throws Exception;

    public Integer removeById(@Param(value = "resId") Long resId) throws Exception;

    //查询菜单
    public List<SysResource> queryTree(Map<String, Object> param);

    public List<PerOrResourceResultVO> getAllResource();

    public List<Long> getResIdByParentId(@Param("parentId") Long parentId);

    public List<SysResourceVO> getAllByRoleId(@Param("roleId") Long roleId);
}
